package com.liufh.consumer.controller;

import com.liufh.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: liufh
 * @create: 2021-12-31 00:42
 **/
@RestController
public class DemoController {

    @Autowired
    private DemoService demoService;

    @RequestMapping(value = "/query")
    public String demo() {
        String message = demoService.findMessage("fine");
        System.out.println("result:" + message);
        return message;
    }

}
